<template>
  <div id="app">
    <Header />
    <transition name="fade">
      <Alert v-show="$store.state.modal.isAlert" />
    </transition>
    <Nav />
    <router-view />
    <Footer />
    <Login />
  </div>
</template>

<script>
import Header from "@/components/Header.vue";
import Nav from "@/components/Nav.vue";
import Footer from "@/components/Footer.vue";
import Login from "@/components/Login.vue";
import Alert from "@/components/Alert.vue";
import Products from "@/views/products.vue";
export default {
  data() {
    return {};
  },
  components: {
    Header,
    Nav,
    Footer,
    Login,
    Alert,
    Products,
  },
};
</script>
<style lang="less">
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s;
}
.fade-enter,
.fade-leave-to {
  opacity: 0;
}
</style>
